package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Viewpoint;
import cn.wolfcode.luowowo.article.domain.ViewpointTag;
import cn.wolfcode.luowowo.common.query.ViewpointQueryObject;

import java.util.List;

public interface ViewpointMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Viewpoint record);

    Viewpoint selectByPrimaryKey(Long id);

    List<Viewpoint> selectAll();

    int updateByPrimaryKey(Viewpoint record);

    List<Viewpoint> selectViewpointTop5(Long destID);

    List<Viewpoint> selectHotViewpoint(Long destId);

    List<Viewpoint> selectForList(ViewpointQueryObject qo);

    List<ViewpointTag> selectTagsByDestId(Long destId);

}